package com.cy.wangly.feign.client;

import feign.RequestInterceptor;
import feign.RequestTemplate;

/**
 * @author lingyun.wang on @date 2022/2/16
 */
public class FeignHeaderInterceptor implements RequestInterceptor {

    public void apply(RequestTemplate requestTemplate) {
//        Map<String, Collection<String>> header = new HashMap<>();
//        header.put("content-type", Arrays.asList("application/json"));
//        header.put("token", Arrays.asList(TokenUtils.getInstance().getToken()));
//        requestTemplate.headers(header);
    }
}
